[gd_scene load_steps=5 format=3 uid="uid://bpch3rjtkvhpg"]

[ext_resource type="Script" uid="uid://1gdn2rwqs0vl" path="res://scripts/player.gd" id="1_4dj3g"]
[ext_resource type="Resource" uid="uid://7hmbl6bbsta3" path="res://resources/inventory/items/test_inventory.tres" id="2_ds41q"]

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_r83dl"]
radius = 0.2
height = 1.8

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_gmw41"]
radius = 0.2
height = 0.95

[node name="Player" type="CharacterBody3D"]
floor_max_angle = 0.872665
script = ExtResource("1_4dj3g")
walk_speed = 3.0
sprint_speed = 5.0
inventory = ExtResource("2_ds41q")

[node name="stand_collision" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
shape = SubResource("CapsuleShape3D_r83dl")

[node name="crouch_collision" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.475, 0)
shape = SubResource("CapsuleShape3D_gmw41")
disabled = true

[node name="left_shoulder" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, -0.0669579)
target_position = Vector3(-0.5, 0, 0)

[node name="right_shoulder" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, -0.0669579)
target_position = Vector3(0.5, 0, 0)

[node name="neck" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)

[node name="head" type="Node3D" parent="neck"]

[node name="Camera3D" type="Camera3D" parent="neck/head"]
fov = 65.0

[node name="interaction_ray" type="RayCast3D" parent="neck/head/Camera3D"]
target_position = Vector3(0, 0, -2)
collision_mask = 2

[node name="grab_ray" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
target_position = Vector3(0, 0, -0.8)

[node name="grab_space_ray" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
target_position = Vector3(0, 0, -0.8)

[node name="crouch_ray" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
target_position = Vector3(0, 0.81, 0)

[node name="step_over_ray" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -0.300335)
target_position = Vector3(0, -0.49, 0)

[node name="step_height_ray" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4, 0)
target_position = Vector3(0, 0, -0.6)

[node name="floor_probe" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)
target_position = Vector3(0, -0.35, 0)

[node name="ColorRect" type="ColorRect" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -1.0
offset_top = -1.0
offset_right = 1.0
offset_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
